<?php echo $form->renderFormTag('#', array('id' => 'form', 'method' => "post", "class" => "form")) ?>
<?= $form->renderHiddenFields() ?>
<fieldset>
    <div class="widget">
        <div class="title"> <?= image_tag('icons/color/plus.png', array("class" => "titleIcon")); ?><h6>New Product</h6></div>
        <div class="fluid">
                    
            <div class="formRow">
                <label>Product Name:</label>
                <div class="formRight">
                    <span class="span6"><?php echo $form['name']->render(); ?> </span>
                    <span class="span6"><label for="name" generated="true" class="error"><?= $form['name']->renderError(); ?></label></span>
                </div>
            </div>

            <div class="formRow">
                <label>Category:</label>
                <div class="formRight">
                    <span class="span6"><?php echo $form['category_id']->render(array('data-placeholder' => " - - Select - - ", 'style' => "width:100%;", 'class' => "chzn-select")); ?> </span>
                    <span class="span6"><label for="category_id" generated="true" class="error"><?= $form['category_id']->renderError(); ?></label></span>
                </div>
            </div>
          
            <div class="formRow">
                <label>Line:</label>
                <div class="formRight">
                    <span class="span6"><?php echo $form['line_id']->render(array('data-placeholder' => " - - Select - - ", 'style' => "width:100%;", 'class' => "chzn-select")); ?> </span>
                    <span class="span6"><label for="line_id" generated="true" class="error"><?= $form['line_id']->renderError(); ?></label></span>
                </div>
            </div>
            
            <div class="formRow">
                <label>Company:</label>
                <div class="formRight">
                    <span class="span6"><?php echo $form['company_id']->render(array('data-placeholder' => " - - Select - - ", 'style' => "width:100%;", 'class' => "chzn-select")); ?> </span>
                    <span class="span6"><label for="company_id" generated="true" class="error"><?= $form['company_id']->renderError(); ?></label></span>
                </div>
            </div>

            <div class="formRow">
                <label>Description:</label>
                <div class="formRight">
                    <span class="span6"><?php echo $form['description']->render(array("class" => "","cols"=>"90", "rows"=>"7")); ?> </span>
                    <span class="span6"><label for="description" generated="true" class="error"><?= $form['description']->renderError(); ?></label></span>
                </div>
            </div>    
         
            
            <div class="formRow">
                <label>Price:</label>
                <div class="formRight">
                    <span class="span6"><?php echo $form['price']->render(); ?> </span>
                    <span class="span6"><label for="price" generated="true" class="error"><?= $form['price']->renderError(); ?></label></span>
                </div>
            </div>    
         

            <div class="wizButtons"> 
                <span class="wNavButtons">
                    <a class="wButton greenwB ml15 m10" title="" onClick="addProduct(true)" href="javascript:void(0);"><span> S u b m i t </span></a>
                </span>
            </div>
        </div>


    </div>
</fieldset>
</form>

                    


                   
                    